package com.liuyi.netty.im.commons.codes.unusual;


import com.liuyi.netty.im.commons.result.ResultCode;

/**
 * 自定义异常
 *
 * @author Mr.Fmy
 * @since 2021-12-02
 */
public class LimException extends RuntimeException {

    /**
     * 异常码
     */
    private String code;

    public LimException(String message) {
        super(message);
        this.code = ResultCode.FAIL;
    }

    public LimException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }
}
